<?php

use think\migration\Migrator;
use think\migration\db\Column;

class AlterNotifyAddStatus extends Migrator
{
    public function up()
    {

        $this->table('notify')
            ->addColumn('status', 'integer', ['limit' => 2, 'default' => 1, 'comment' => '1.未处理 2.已处理 3.已忽略'])
            ->update();


    }

    public function down()
    {
        $this->table('notify')
            ->removeColumn('status');
    }
}
